"""dj030201 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from shop import views as shop_views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('',shop_views.index,name='index'),
    path('login/', shop_views.login,name='login'),
    path('cashier/', shop_views.cashier,name='cashier'),
    path('sales_query/', shop_views.sales_query,name='sales_query'),
    path('main/',shop_views.main,name='main'),
    path('cashier/add_product/',shop_views.add_product,name='add_product'),
    path('cashier/delete_product/',shop_views.delete_product,name='delete_product'),
    path('cashier/receive_money/',shop_views.receive_money,name='receive_money'),
    path('cashier/cancel/',shop_views.cashier_cancel,name='cancel'),
    path('cashier/submit/',shop_views.cashier_submit,name='submit'),
    path('salesdetail_query/',shop_views.salesdetails_query,name='salesdetail_query'),
    path('sales_query/delete/',shop_views.del_sales_query,name='sales_query_delete'),
]
